﻿@model IEnumerable<KCMS.Web.Models.ProductViewModel>
@if (Model.Count() != 0)
{
<ul class="product-list">
    @foreach (var item in Model)
    {
        
        <li>
            <div class="product-item-image-container">
                <a href="@Url.Action("Show", "Product", new { code = item.Code, index = item.Index })">
                    @{ Html.RenderAction("ShowThumbImage", "ProductImage", new { productId = item.Id });}
                </a>
            </div>
            <div class="product-item-title">
                <a href="@Url.Action("Show", "Product", new { code = item.Code, index = item.Index })">
                @Html.DisplayFor(modelItem => item.Title) @Html.DisplayFor(modelItem => item.Brend.Title)
                </a>
            </div>
            <div class="product-item-article">
                арт. @Html.DisplayFor(modelItem => item.Article)
            </div>
            <div class="product-item-price">
                @Html.DisplayFor(modelItem => item.Price) руб.
            </div>
        </li> 
    }
</ul>
}